import config from "@/config"
import http from "@/utils/request"

export default {
	url: `${config.API_URL}/system/dict/data/type/`,
	get: async function(dictType){
		var res = {}
		res = await http.get(this.url + dictType);
		if (res.code == 200){
			return res.data;
		}
	},
	props: {
		label: 'dictLabel',					//映射label显示字段
		value: 'dictValue',					//映射value值字段
	}
}